package mp;

import com.ms.education.MD5Util;
import com.ms.education.ucenter.UcenterApplication;
import com.ms.education.ucenter.entity.User;
import com.ms.education.ucenter.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * <p>Project:education-test02
 * <p>Powered by ms on 2023-04-16 18:34:51
 *
 * @author ms
 * @version 1.0
 * @since 1.8
 */
@SpringBootTest(classes = UcenterApplication.class)
public class test02 {

    @Autowired
    private UserService userService;

    @Test
    public void testInsertUser() {
        User user = new User();
        user.setNickname("小A");
        user.setMobile("12345678910");
        user.setPassword(MD5Util.getMD5("123456"));
        userService.save(user);
    }
}
